define(["jquery","template","as/app/dst/dstHistoryRecord.servers","as/template/dst/dstHistoryRecord.tpl"],function($,template,$servers,tpl){
	var ui = {};

	var drawHistoryList = function(data){
		return template("dstHistoryRecord_historyList",data);
	}
	var drawInfo = function(data){
		return template("dstHistoryRecord_info",data);
	}
	var drawResult = function(data){
		return template("dstHistoryRecord_result",data);
	}
	var drawResultPrint = function(data){
		return template("dstHistoryRecord_resultPrint",data);
	}

	ui.historyList = function(options){
		$("#" + options.id).html(tpl.historyList());
		var h = drawHistoryList(options);
		$("#" + options.id).html(h);
	}
	ui.info = function(options){
		$("#" + options.id).html(tpl.info());
		var h = drawInfo(options.info);
		$("#" + options.id).html(h);
	}
	ui.result = function(options){
		$("#" + options.id).html(tpl.result());
		var h = drawResult(options.info);
		$("#" + options.id).html(h);
	}
	ui.resultPrint = function(options){
		$("#" + options.id).html(tpl.resultPrint());
		var h = drawResultPrint(options.info);
		$("#" + options.id).html(h);
	}

	return ui;
});